home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Networking / DumpNetworkSetup / Read Me About DumpNetworkSetup < prev   
Encoding:
Text File  |  2000-10-06  |  2.2 KB  |  50 lines  |  [TEXT/ttxt]

  1. Read Me About DumpNetworkSetup
  2.  
  3. 1.0.1b1
  4.  
  5. DumpNetworkSetup dumps the entire contents of the Network Setup database to a text file.  The purpose of this sample is twofold.  Firstly, it shows a simple use of the Network Setup API.  Secondly, it is a useful tool for debugging other Network Setup code because it allows you to see the effect your code had on the database.  I used DumpNetworkSetup extensively while developing the MoreNetworkSetup sample.
  6.  
  7.   <http://developer.apple.com/samplecode/Sample_Code/Networking/MoreNetworkSetup.htm>
  8.  
  9. DumpNetworkSetup requires the Network Setup library, which is available in Mac OS 8.5 and above.
  10.  
  11. Packing List
  12.  
  13. The sample contains the following items:
  14.  
  15. • DumpNetworkSetup.mcp — A project file for the sample.
  16. • DumpNetworkSetup-PPC — A compiled version of the above.
  17. • DumpNetworkSetup.c — Source code to the sample.
  18. • MoreIsBetter — A folder containing the parts of MoreIsBetter that are required by this sample.
  19.  
  20. Using the Sample
  21.  
  22. To use the sample, simply double-click it and choose a place to save the report.  DumpNetworkSetup will create a text file description of the Network Setup database.
  23.  
  24. Building the Sample
  25.  
  26. The sample was built using the CodeWarrior Pro 2 C compiler with Universal Interfaces 3.3.2.  You should be able to just open the project, select the “PPC” target, and choose Make from the Project menu.  This will build DumpNetworkSetup-PPC.
  27.  
  28. Caveats
  29.  
  30. DumpNetworkSetup only compiles for PowerPC because the Network Setup API is only exported to PowerPC clients.
  31.  
  32. DumpNetworkSetup does not compile for Carbon because the Network Setup API is not supported by Carbon.
  33.  
  34. DumpNetworkSetup includes formatted output for a number of important network preferences.  However, some preferences are still displayed only in hex.
  35.  
  36. Credits and Version History
  37.  
  38. If you find any problems with this sample, mail <DTS@apple.com> and I’ll try to fix them up.
  39.  
  40. 1.0b1 (Jul 1999) was the first shipping version.
  41.  
  42. 1.0.1b1 (Sep 1999) is a minor update to add support for printing vector preferences nicely.  I also updated the code to compile with the latest Universal Headers version of “NetworkSetup.h”.
  43.  
  44. Share and Enjoy.
  45.  
  46. Apple Developer Technical Support
  47. Networking, Communications, Hardware
  48.  
  49. 28 Sep 2000
  50.